<?php

/**
 * @author Martin Pernica
 * @copyright 2008
 */

function getListOfModules($without_prefix = FALSE, $dir = "../modules/"){
$modules = array();
$handle = opendir($dir);
for ($i = 0; ($file = readdir($handle)) !== false; $i++){
	if($without_prefix){
		$file = explode("_", $file);
        $modules[$i] = $file[1];
	}else{
        $modules[$i] = $file;
        }
}
closedir($handle);

return $modules;

}
?>